package com.springcloud.service;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.springcloud.entity.Dept;

@FeignClient(value = "MICROSERVICECLOUD-DEPT")
public interface DeptClientService {
	@RequestMapping("/dept/add")
	public boolean add(@RequestParam("dept")Dept dept) ;
	
	
	@RequestMapping( "/dept/get/{deptno}")
	public Dept get(@PathVariable("deptno")int deptno);
	
	@RequestMapping("/dept/list")
	public List<Dept> list() ;
}
